package com.zxy.controller;

import com.zxy.common.result.Result;
import lombok.RequiredArgsConstructor;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Zxy
 * @Date: 2021-04-21
 **/
@RestController
@RequiredArgsConstructor
@RequestMapping("/index")
public class IndexController {


    @GetMapping("index")
    @RequiresAuthentication
    public Result index() {
        return Result.succ("数据返回成功", null);
    }
}
